package com.fruit;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableCircuitBreaker
@SpringCloudApplication
@EnableHystrixDashboard
@EnableFeignClients(basePackages = "com.fruit")
public class FruitOrderServerApplication {
    private final static Logger logger = LoggerFactory.getLogger(FruitOrderServerApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(FruitOrderServerApplication.class, args);
        logger.info("订单服务 启动成功");
    }
}
